package com.ywb.edugui.entity.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.awt.*;
import java.net.URL;

/**
 * @Author ywb
 * 教师导出Excel用的模型类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeacherExcel {
    @ColumnWidth(20)
    @ExcelProperty(index = 0,value = "教师姓名")
    private String teacherName;
    @ExcelProperty(index = 1,value = "教师职称")
    @ColumnWidth(25)
    private String teacherTitle;
    @ExcelProperty(index = 2,value = "教师简介")
    @ColumnWidth(30)
    private String teacherIntro;
    @ExcelProperty(index = 3,value = "教师头像")
    private URL teacherAvatar;

}
